package moe.bogos.douro.api.common.item;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.ActionResultType;
import net.minecraft.world.World;
import net.minecraft.util.Hand;
import net.minecraft.util.text.StringTextComponent;

public class TestItem extends Item
{
    public TestItem(final Properties properties) 
    {
        super(properties);
    }
    
    @Override
    public ActionResult<ItemStack> use(final World worldIn, final PlayerEntity playerIn, final Hand handIn)
    {
        //if (!playerIn.world.isRemote)
            //Minecraft.getInstance().displayGuiScreen(new AwakeSoulScreen(new StringTextComponent("title")));
        return new ActionResult<ItemStack>(ActionResultType.SUCCESS, playerIn.getItemInHand(handIn));
    }
}